package org.rslai.tcedit.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import org.hibernate.validator.Length;

/**
 * 测试用例执行状态
 * 
 * @author rslai
 */
@Entity
@Table(name="t_execute_state")
public class ExecuteState extends UUIDSupport {

	private String name; // 测试用例执行状态名 
	private String describing; // 状态描述
	private boolean setInfo = false; // 设置为此状态时是否需要填写说明标记
	private String sequence; // 顺序

	@Column(nullable = false, length = 20)
	@Length(max = 20, message = "状态名请限制在20字以内")
	public String getName() { return name; }
	public void setName(String name) { this.name = name; }

	@Column(nullable = true, length = 100)
	@Length(max = 100, message = "状态描述请限制在100字以内")
	public String getDescribing() { return describing; }
	public void setDescribing(String describing) { this.describing = describing; }

	@Column(nullable = false)
	public Boolean getSetInfo() { return setInfo; }
	public void setSetInfo(Boolean setInfo) { this.setInfo = setInfo; }

	@Column(nullable = true, length = 5)
	public String getSequence() { return sequence; }
	public void setSequence(String sequence) { this.sequence = sequence; }

	
//		INSERT INTO [dbo].[ExecuteState]
//			(UID, State, Describing, SetInfo, Sequence)
//		    VALUES ('20070410165600b78d3d', '通过 - 未发现BUG', '用例执行通过', 0, '00001')
//		INSERT INTO [dbo].[ExecuteState]
//			(UID, State, Describing, SetInfo, Sequence)
//		    VALUES ('200704110915134b94de', '失败 - 新建BUG', '用例执行失败', 1, '00003');
//		INSERT INTO [dbo].[ExecuteState]
//			(UID, State, Describing, SetInfo, Sequence)
//		    VALUES ('200707201409241b9a43', '未执行', '用例未执行', 0, '00006')
//		INSERT INTO [dbo].[ExecuteState]
//			(UID, State, Describing, SetInfo, Sequence)
//		    VALUES ('20070809091835bfd6ed', '失败 - 重新打开BUG', '用例执行失败', 1, '00004')
//		INSERT INTO [dbo].[ExecuteState]
//			(UID, State, Describing, SetInfo, Sequence)
//		    VALUES ('200708090918521d3d9d', '通过 - 关闭BUG', '用例执行通过', 1, '00002')
//		INSERT INTO [dbo].[ExecuteState]
//			(UID, State, Describing, SetInfo, Sequence)
//		    VALUES ('200709061551221d3528', '失败 - 存在暂不处理BUG', '用例执行失败', 1, '00005')
//		GO

}
